<template>
  <div class="options">
    <div class="cont" @click="combut">
      <div class="left">{{ text }}</div>
      <div class="right">{{ info }}</div>
      <div class="iocn">
        <span class="iconfont iconjiantou1"></span>
      </div>
    </div>
  </div>
</template>

<script>
export default {
  props: ["text", "info"],
  methods: {
    combut() {
      this.$emit("combut", "点击了子组件");
    }
  }
};
</script>

<style lang="less">
.options {
  padding: 0 5.556vw;
  background: #f2f2f2;
  .cont {
    box-sizing: border-box;
    padding: 5.556vw 0;
    display: flex;
    align-items: center;
    border-bottom: 0.278vw solid #e4e4e4;
    .left {
      font-size: 4.444vw;
      color: #343434;
      flex: 1;
    }
    .right {
      font-size: 3.889vw;
      color: #afafaf;
      margin: 0 2.778vw;
    }
    .iocn {
      span {
        color: #afafaf;
        font-size: 4.444vw;
      }
    }
  }
}
</style>